//
//  UIViewController+ShowAlertController.h
//  UnionParking
//
//  Created by Fun Tech on 2018/1/19.
//  Copyright © 2018年 Union. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface UIViewController (ShowAlertController)

- (void)j_appearance;

#pragma mark--alert

// 单个按钮提示，按钮不做任何动作
- (void)lq_showAlertControllerWithMessage:(NSString *)message;

// 单个按钮提示，有确定，有动作
- (void)lq_showAlertControllerWithMessage:(NSString *)message
                    okHandle:(dispatch_block_t)okHandle;

// 双按钮提示，有确定，取消，都有动作
- (void)lq_showAlertControllerWithMessage:(NSString *)message
                cancleHandle:(dispatch_block_t)cancleHandle
                    okHandle:(dispatch_block_t)okHandle;

#pragma mark--sheet

// alert sheet
- (void)lq_showAlertSheetControllerWithTitles:(NSArray *)titles
                                   handles:(dispatch_block_t)fristHandles,...NS_REQUIRES_NIL_TERMINATION;

// alert sheet
- (void)lq_showAlertSheetControllerWithTitles:(NSArray *)titles
                            CompleteHandle:(void(^)(NSString *flag))handles;

#pragma mark--edit text

- (void)lq_showEditAlertWithTitle:(NSString *)title
               WithPlaceholder:(NSArray *)placeholders
                CompleteHandle:(void(^)(NSString *result))handle;



@end

NS_ASSUME_NONNULL_END
